package com.victor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.victor.dao.EnterbrandMationDao;
import com.victor.entity.Enterbrandmation;
import com.victor.entity.Shopuser;
import com.victor.service.EnterbrandmationService;


@Service
public class EnterbrandmationServiceImpl implements EnterbrandmationService{
	
	@Autowired
	private EnterbrandMationDao enterbrandmationDao;
	
	/**
	 * 查询
	 */
	@Override
	public List<Enterbrandmation> selectAll(String status,String starttime, String endtime) {
		return enterbrandmationDao.selectAll(status,starttime,endtime);
	}

	/**
	 * 审批通过
	 */
	@Override
	public boolean pass(Integer id) {
		
		return enterbrandmationDao.pass(id);
	}
	
	/**
	 * 审批不通过
	 */
	@Override
	public boolean noPass(Integer id) {
		
		return enterbrandmationDao.noPass(id);
	}

	/**
	 * 批量删除
	 */
	@Override
	public boolean batchDelete(int[] ids) {
		return enterbrandmationDao.batchDelete(ids) > 0 ? true : false;
	}

	/**
	 * 详情页面
	 */
	@Override
	public Enterbrandmation selectById(Integer id) {
		return enterbrandmationDao.selectById(id);
	}

	/**
	 * 根据用户名模糊查询入驻商家列表
	 */
	@Override
	public List<Enterbrandmation> likeSearch(String search) {
		return enterbrandmationDao.likeSearch(search);
	}

}
